package com.itheima.mapper;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Param;

import javax.jws.soap.SOAPBinding;
import java.util.List;

public interface UserMapper {

    public User findById(Integer id);

    public Integer add(User u);

    Integer delete(Integer id);

    void update(User u);

    List<User> findAll();



    /*
    根据id或者姓名查
    @Param()给参数起别名*/
    List<User> findByIdOrName(@Param("id") Integer id,@Param("name")String name);

   User findByCondition(User u);

    User findByCondition2(User u);


}
